package com.zb.sannuo.pharmacy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.sannuo.common.domain.Drugstore;
import com.zb.sannuo.common.domain.UserLogin;
import com.zb.sannuo.common.domain.UserRole;
import com.zb.sannuo.common.domain.search.DrugstoreInfo;
import com.zb.sannuo.common.domain.vo.DrugstoreInfoVo;

public interface DrugstoreService extends IService<DrugstoreInfo> {

    /**
     * 查询门店信息且分页操作
     * @param current
     * @param number
     * @param drugstoreInfoVo
     * @return
     */
    Page selectMDListPage(int current, int number, DrugstoreInfoVo drugstoreInfoVo);

    /**
     * 查询分店信息且分页操作
     * @param current
     * @param number
     * @param drugstoreInfoVo
     * @return
     */
    Page selectFDListPage(int current, int number, DrugstoreInfoVo drugstoreInfoVo);

    /**
     * 添加分店信息
     * @param drugstore
     * @param userLogin
     * @param userRole
     * @return
     */
    boolean addSubStore(Drugstore drugstore, UserLogin userLogin, UserRole userRole);

}
